package 设计模式.结构型.facade外观.general标准写法;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public class Facade {
    private SubSystemA subSystemA;
    private SubSystemB subSystemB;
    private SubSystemC subSystemC;

    public void doAB() {
        subSystemA.doA();
        subSystemB.doB();
    }

    public void doBC() {
        subSystemB.doB();
        subSystemC.doC();
    }

    public void doABC() {
        subSystemA.doA();
        subSystemB.doB();
        subSystemC.doC();
    }
}
